package com.lagou.service.api;

public interface CodeService {

    /**
     * 校验验证码
     *
     * @param email
     * @param code
     * @return 0-正确 1-错误 2-超时
     */
    int validateCode(String email, String code);

}
